package com.geeguo.ebuilder.operation.business.system.user.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Getter
@Setter
public class UserCreateDTO {

    @NotBlank(message = "用户名不能为空")
    @Schema(title = "用户名")
    private String  username;

    @NotBlank(message = "密码不能为空")
    @Schema(title = "密码")
    private String  password;

    @NotBlank(message = "姓名不能为空")
    @Schema(title = "真实姓名")
    private String  realName;

    @Schema(title = "性别")
    private Integer gender;

    @Schema(title = "移动电话")
    private String  mobile;

    @Schema(title = "电子邮件")
    private String  email;

    @NotNull(message = "所属部门不能为空")
    @Schema(title = "所属部门ID")
    private String orgId;

    @NotNull(message = "启用状态不能为空")
    @Schema(title = "启用状态")
    private Integer state;

    @Schema(title = "权限组")
    private List<String> roles;
}